// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 

package com.yoyo.lib.utilities;

import com.google.myjson.Gson;
import java.lang.reflect.Type;

public class JsonParser {

    public static Gson gson = new Gson();

    public static <T> T deserializeByJson(String data, Class<T> clz) {
        return gson.fromJson(data, clz);
    }

    public static <T> T deserializeByJson(String data, Type type) {
        return gson.fromJson(data, type);
    }

    public static <T> String serializeToJson(T t) {
        return gson.toJson(t);
    }

}
